package com.gmu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
@Data
@NoArgsConstructor
@RequiredArgsConstructor
@EqualsAndHashCode(callSuper = false,of = "nameCn")//重写equal和hashcode
@Accessors(chain = true)
@ApiModel(value="TblRole对象", description="角色")
public class TblRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色id")
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    @ApiModelProperty(value = "角色名称 ROLE_")
    private String name;

    @ApiModelProperty(value = "角色中文名称")
    @TableField("nameCn")
    @NonNull
    private String nameCn;

    @ApiModelProperty(value = "状态-1可用-0禁用")
    private Integer status;

    @ApiModelProperty(value = "删除标志-1删除-0存在")
    private Integer delFlag;


}
